/* 
    BaseNode.h
    -----------------
    Base class for our objects that communicate with other things.  Since most 
    of our objects are associated with a socket and listening for events, we 
    will put all that common functionality in this base class, which all the 
    other, more specialized classes will inherrit.
*/
#ifndef __BASENODE_H
#define __BASENODE_H

#include <unistd.h>
#include <sys/types.h>
#include <event.h>

class BaseNode {

	public:
		BaseNode();
		virtual ~BaseNode();
	
		void OnEvent(int fd, short event);

	
	protected:
		int _socket;
		struct event _event;
	
	private:

};

void EventRun(int fd, short event, void *arg);


#endif
